projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21efd27
)
(operate-on-rectangle): If we overshoot when looking for endcol, back up.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 3 Sep 1997 21:09:39 +0000
(21:09 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 3 Sep 1997 21:09:39 +0000
(21:09 +0000)
lisp/rect.el
patch
|
blob
|
history
diff --git
a/lisp/rect.el
b/lisp/rect.el
index d8e742ce6a1b078f110ab3c56a1ca2fc3ed3c475..2904f94687a04634c9e2c112bd6971a7d2e42f5f 100644
(file)
--- a/
lisp/rect.el
+++ b/
lisp/rect.el
@@
-60,6
+60,10
@@
Point is at the end of the segment of this line within the rectangle."
(setq begextra (- (current-column) startcol))
(setq startpos (point))
(move-to-column endcol coerce-tabs)
+ ;; If we overshot, move back one character
+ ;; so that endextra will be positive.
+ (if (and (not coerce-tabs) (> (current-column) endcol))
+ (backward-char 1))
(setq endextra (- endcol (current-column)))
(if (< begextra 0)
(setq endextra (+ endextra begextra)